﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ChoViet.Site.ViewModels.ArticleDetailViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%=Model.Article != null ? Model.Article.Title : "Bài viết không tồn tại hoặc đã bị xóa"%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="main_content">
        <div class="col_l">
            <div style="margin-top: 12px" class="art_bor_cor">
                <h3>
                    <img height="24" width="12" style="vertical-align: middle" src="/images/pvoil/icon.gif"><%=Model.Article.Title%></h3>
                <%--<div class="art_bg_gra"></div>--%>
                <div class="bg_gra">
                </div>
                <div class="art_sumary">
                    <div style="float: left">
                        <%if (!string.IsNullOrEmpty(Model.Article.ImagePath))
                          {%>
                        <img style="border: 1px solid #669933; max-height: 400px; max-width: 400px; margin: 0px 10px 10px 0px;"
                            src="<%=Model.Article.ImagePath%>" />
                        <%}%>
                    </div>
                    <%=Model.Article.Summary %>
                </div>
                <div class="art_detail">
                    <%=Model.Article.ArticleContent%>
                </div>
                <div class="clear">
                </div>
                <div class="otheritem">
                    <div class="title">
                        <div class="o111">
                            Các tin khác</div>
                        <div class="line">
                        </div>
                    </div>
                    <div class="o2">
                        <ul>
                            <%foreach (var item in Model.ArticlesSameCate)
                              {%>
                            <li><a href="/article/details/<%=item.ID%>">
                                <%=item.Title %></a></li>
                            <%} %>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div class="col_r">
           
            <%Html.RenderPartial("~/Views/Shared/Hotline.ascx");%>
            
            <% Html.RenderAction("GetQuestion", "Article", new { catID = 5, number = 8 });%>
            
            <%Html.RenderAction("Getgallerybox", "Gallery");%>
            
            <%Html.RenderPartial("~/Views/Shared/FacebookFanpage.ascx");%>
        </div>
        <div class="clear">
        </div>
    </div>
</asp:Content>
